package com.example.jinyongjie.test_opengles.util;

/**
 * Created by jinyongjie on 17/3/23.
 */
public class Geometry {
    public  static class Point{
        public final float x,y,z;
        public Point(float x,float y,float z)
        {
            this.x = x;
            this.y = y;
            this.z = z;
        }
        public Point translateY(float offset)
        {
            return new Point(x,y+offset,z);
        }
    }
    public static class Circle{
        public final Point center;
        public final float radius;
        public Circle(Point center,float radius)
        {
            this.center = center;
            this.radius = radius;
        }
        public Circle scale(float scale)
        {
            return new Circle(center,radius*scale);
        }
    }
}
